﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Resto.CostControl.Core.DWZAdapter
{
    /// <summary>
    /// 枚举服务类，用于获取下拉框的数据源
    /// </summary>
    public interface IEnumService1
    {
        /// <summary>
        /// 获取指定枚举Key的下拉枚举数据源
        /// </summary>
        /// <param name="EnumKey">枚举Key</param>
        /// <returns>枚举数据源</returns>
        IList<SelectListItem> GetEnumDataSource(string enumKey);

        /// <summary>
        /// 获取指定枚举项值的枚举项文本
        /// </summary>
        /// <param name="enumKey">枚举Key</param>
        /// <param name="value"></param>
        /// <returns></returns>
        string GetEnumText(string enumKey, string value);
    }
}
